

<div class="modal-header" style="margin-top: 30px">
    <h1 class="modal-title" style="float: left">{{ user_profile_obj.name }}</h1>
</div>
<div class="modal-body">
    <div class="row site-navbar white padding-5 margin-bottom-10" style="border-radius: 3px;"><i class="icon fa-info" aria-hidden="true"></i> 基本信息</div>
    {% if user_profile_obj.phone %}<div><p>手机: {{ user_profile_obj.phone }}</p></div>{% endif %}
    {% if user_profile_obj.status %}<div><p>状态: {% for i in user_profile_obj.status_choices %}{% if user_profile_obj.status == i.0 %}{{ i.1 }}{% endif %}{% endfor %}</p></div>{% endif %}
    {% if user_profile_obj.sex %}<div><p>性别: {% for i in user_profile_obj.sex_choices %}{% if user_profile_obj.sex == i.0 %}{{ i.1 }}{% endif %}{% endfor %}</p></div>{% endif %}
    {% if user_profile_obj.department %}<div><p>部门: {{ user_profile_obj.department.name }}</p></div>{% endif %}
    {% if user_profile_obj.work_number %}<div><p>工号: {{ user_profile_obj.work_number }}</p></div>{% endif %}
    {% if user_profile_obj.email %}<div><p>邮箱: {{ user_profile_obj.email }}</p></div>{% endif %}
    {% if user_profile_obj.address %}<div><p>住址: {{ user_profile_obj.address }}</p></div>{% endif %}

</div>
<div class="modal-footer" style="position: fixed; bottom: 0;">

    <button type="button" href="update/{{ user_profile_obj.id }}/"  data-toggle="modal" data-target="#exampleTabs" class="btn btn-success" id=button_edit>编辑</button>

    {% if user_profile_obj.status == 2 and user_profile_obj.type == 2 %}
        <button type="button" href="set_departure/{{ user_profile_obj.id }}/"  data-toggle="modal" data-target="#exampleTabs" class="btn btn-success" id="button_departure">设为离职</button>
    {% elif user_profile_obj.status == 3 and user_profile_obj.type == 2 %}
        <button type="button" href="set_induction/{{ user_profile_obj.id }}/"  data-toggle="modal" data-target="#exampleTabs" class="btn btn-success" id="button_departure">设为在职</button>
    {% endif %}

    {% if user_profile_obj.type == 2 and user_profile_obj.status == 1 %}

        <button type="button" href="delete/{{ user_profile_obj.id }}/"  data-toggle="modal" data-target="#exampleTabs" class="btn btn-success" id="button_delete">删除</button>
    {% endif %}

</div>